<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>立体按钮</title>
		<style type="text/css">
			.wrap {
				margin: 150px auto;
				width: 500px;
				height: 500px;
				background-color: #eee;
				position: relative;
			}
			.inner {
				position: absolute;
				top: 50%;
				left: 50%;
				transform: translate(-50%,-50%) skew(7deg) rotate(-6deg);
				width: 300px;
				height: 100px;
				background-color: #FF6700;
				transition: 1s;
				z-index: 2;
				font-size: 22px;
				font-weight: 800;
				color: #fff;
				text-align: center;
				line-height: 100px;
			}
			.inner::before {
				content: '';
				display: block;
				width: 15px;
				height: 100px;
				background-color: #333333;
				position: absolute;
				top: 0;
				left: -15px;
				transform: skewY(-45deg);
				transform-origin: right;
			}
			.inner::after {
				content: '';
				display: block;
				width: 300px;
				height: 15px;
				background-color: #5a5a5a;
				position: absolute;
				bottom: -15px;
				left: 0;
				transform: skewX(-45deg);
				transform-origin: top;
			}
		</style>
	</head>
	<body>
		<div class="wrap">
			<div class="inner">带你进入CSS精彩世界</div>
		</div>
	</body>
</html>
